import React,{Component} from 'react';
import {View,TouchableOpacity,Text} from 'react-native';

export default class Demo10Component extends Component{
  handlePress(){
    alert('text is clicked');
  }

  render(){
    return <View>
      <TouchableOpacity 
      onPress={this.handlePress}>
        <Text>你好</Text>
      </TouchableOpacity>

      <Text>hello</Text>
    </View>
  }
}
